package com.ybkj.daijia.server.model;

import java.io.Serializable;

/**
 * 结算周期实体类
 *
 * @author Administrator
 */
public class SettleAccountsCycle implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;//编号
    private String agency;//结算机构名称
    private Integer bankCyclePeriod;//结算周期(天)
    private String agencyType;//类型(银行,非银行)
    private String bankAndLicence;//支付机构支付业务许可证编号
    private String payType;//支付业务类型
    private String serviceRange;//业务覆盖范围
    private String reserveBank;//备付金存管银行
    private Integer valid;//是否有效
    private Long companyId;//公司id

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAgency() {
        return agency;
    }

    public void setAgency(String agency) {
        this.agency = agency == null ? null : agency.trim();
    }

    public Integer getBankCyclePeriod() {
        return bankCyclePeriod;
    }

    public void setBankCyclePeriod(Integer bankCyclePeriod) {
        this.bankCyclePeriod = bankCyclePeriod;
    }

    public String getAgencyType() {
        return agencyType;
    }

    public void setAgencyType(String agencyType) {
        this.agencyType = agencyType == null ? null : agencyType.trim();
    }

    public String getBankAndLicence() {
        return bankAndLicence;
    }

    public void setBankAndLicence(String bankAndLicence) {
        this.bankAndLicence = bankAndLicence == null ? null : bankAndLicence.trim();
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType == null ? null : payType.trim();
    }

    public String getServiceRange() {
        return serviceRange;
    }

    public void setServiceRange(String serviceRange) {
        this.serviceRange = serviceRange == null ? null : serviceRange.trim();
    }

    public String getReserveBank() {
        return reserveBank;
    }

    public void setReserveBank(String reserveBank) {
        this.reserveBank = reserveBank == null ? null : reserveBank.trim();
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SettleAccountsCycle other = (SettleAccountsCycle) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAgency() == null ? other.getAgency() == null
            : this.getAgency().equals(other.getAgency()))
            && (this.getBankCyclePeriod() == null ? other.getBankCyclePeriod() == null
            : this.getBankCyclePeriod().equals(other.getBankCyclePeriod()))
            && (this.getAgencyType() == null ? other.getAgencyType() == null
            : this.getAgencyType().equals(other.getAgencyType()))
            && (this.getBankAndLicence() == null ? other.getBankAndLicence() == null
            : this.getBankAndLicence().equals(other.getBankAndLicence()))
            && (this.getPayType() == null ? other.getPayType() == null
            : this.getPayType().equals(other.getPayType()))
            && (this.getServiceRange() == null ? other.getServiceRange() == null
            : this.getServiceRange().equals(other.getServiceRange()))
            && (this.getReserveBank() == null ? other.getReserveBank() == null
            : this.getReserveBank().equals(other.getReserveBank()))
            && (this.getValid() == null ? other.getValid() == null
            : this.getValid().equals(other.getValid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAgency() == null) ? 0 : getAgency().hashCode());
        result =
            prime * result + ((getBankCyclePeriod() == null) ? 0 : getBankCyclePeriod().hashCode());
        result = prime * result + ((getAgencyType() == null) ? 0 : getAgencyType().hashCode());
        result =
            prime * result + ((getBankAndLicence() == null) ? 0 : getBankAndLicence().hashCode());
        result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode());
        result = prime * result + ((getServiceRange() == null) ? 0 : getServiceRange().hashCode());
        result = prime * result + ((getReserveBank() == null) ? 0 : getReserveBank().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", agency=").append(agency);
        sb.append(", bankCyclePeriod=").append(bankCyclePeriod);
        sb.append(", agencyType=").append(agencyType);
        sb.append(", bankAndLicence=").append(bankAndLicence);
        sb.append(", payType=").append(payType);
        sb.append(", serviceRange=").append(serviceRange);
        sb.append(", reserveBank=").append(reserveBank);
        sb.append(", valid=").append(valid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
